package com.zc.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zc.web.domain.DailyReflection;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 每日感悟Mapper接口
 *
 * @author zc
 * @date 2025-09-29
 */
@Mapper
public interface DailyReflectionMapper extends BaseMapper<DailyReflection>
{
    /**
     * 查询每日感悟
     *
     * @param id 每日感悟主键
     * @return 每日感悟
     */
    public DailyReflection selectDailyReflectionById(Long id);

    /**
     * 查询每日感悟列表
     *
     * @param dailyReflection 每日感悟
     * @return 每日感悟集合
     */
    public List<DailyReflection> selectDailyReflectionList(DailyReflection dailyReflection);

    /**
     * 新增每日感悟
     *
     * @param dailyReflection 每日感悟
     * @return 结果
     */
    public int insertDailyReflection(DailyReflection dailyReflection);

    /**
     * 修改每日感悟
     *
     * @param dailyReflection 每日感悟
     * @return 结果
     */
    public int updateDailyReflection(DailyReflection dailyReflection);

    /**
     * 删除每日感悟
     *
     * @param id 每日感悟主键
     * @return 结果
     */
    public int deleteDailyReflectionById(Long id);

    /**
     * 批量删除每日感悟
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDailyReflectionByIds(Long[] ids);

}